import request from "@/api/request";
import { type AxiosRequestConfig } from "axios";
import { type DeepRequired } from "../../interface";

/**
 * /dashboard/getProfitRate/{type}
 */
export function getDashboardGetProfitRateByType(params: GetDashboardGetProfitRateByTypeParams, config?: AxiosRequestConfig) {
    return request.get<DeepRequired<any>>(`/dashboard/getProfitRate/${params.type}`, config);
}

export interface GetDashboardGetProfitRateByTypeParams {
    type: string;
}
